#include <iostream>
using namespace std;

bool check(int x)
{
    if(x < 2)
    {
        return false;
    }
    for(int i = 2;i <= x / i;i++)
    {
        if(x % i == 0)
        {
            return false;
        }
    }
    return true;
}

int main() {
    string s;
    cin >> s;
    int sum[30] = {0};
    int mmax = 0,mmin = 100;
    for(int i = 0;i< s.size();i++)
    {
        sum[s[i] - 'a']++;
    }
    for(int i = 0;i < 26;i++)
    {
        mmax = max(mmax,sum[i]);
        if(sum[i])
        {
            mmin = min(mmin,sum[i]);
        }
    }
    if(check(mmax - mmin))
    {
        cout << "Lucky Word" << std::endl;
        cout << mmax - mmin << endl;
    }
    else
    {
        cout << "No Answer" << endl;
        cout << 0 << endl;
    }

    return 0;
}
// 64 位输出请用 printf("%lld")